package com.eddie.facade;

/**
 * DVD子系统
 * @author Eddie
 * @date 2022/08/02 09:15
 **/
public class DVEPlayer {

    //单例模式,饿汉式
    private DVEPlayer() {

    }

    private static final DVEPlayer instance = new DVEPlayer();

    public static DVEPlayer getInstance() {
        return instance;
    }

    public void on() {
        System.out.println("DVD打开了");
    }

    public void off() {
        System.out.println("DEV关闭了");
    }

    public void play() {
        System.out.println("DEV正在播放");
    }

    public void pause() {
        System.out.println("DEV暂停");
    }


}
